package com.zd.lib.config;

public class Key {

    /**
     * 常数值
     */
    public static final class FinalValue {
        public static final int REQUEST_CODE_1 = 1;
        public static final int REQUEST_CODE_2 = 2;
        public static final int REQUEST_CODE_3 = 3;
        public static final int REQUEST_CODE_4 = 4;
        public static final int LIMIT = 10;
        public static final int LIMIT_20 = 20;

    }

    /**
     * 保存到SharePrefrence的key值
     */
    public static final class ShareKey {

        public static final String TOKEN = "token";
        public static final String APPVERSION = "app_version";
        public static final String APPVER = "appver";
        public static final String APP_KEY = "app_key";
        public static final String NB = "nb";
        public static final String OS = "os";
        public static final String USERNAME = "username";
        public static final String PASSWORD = "password";
        public static final String ANDROID = "android";
        public static final String USERINFO = "userinfo";
        public static final String LOGINFO = "Loginfo";
        /**
         * 保存搜索历史记录到文件中。文件对应的key值
         */
        public static final String SEARCH_HISTORY = "search_history";
        public static final String MOBILE ="mobile" ;
    }

    /**
     * 请求服务器的参数Key
     */
    public static class ParamKey {
        public static final String USERNAME = "username";
        public static final String PASSWORD = "password";
        public static final String TYPE = "type";   //评论的类型：1 为车主秀评论，2 达人说评论
        public static final String DEVICE = "device";
        public static final String TOKEN = "token";
        //		public static final String OFFSET = "offset";
        public static final String LIMIT = "limit";

        public static final String LATITUDE = "latitude";//纬度
        public static final String LONGITUDE = "longitude";//经度
        public static final String IMEI = "imei";//设备唯一号
        public static final String MASTER_ID = "master_id";  //type为1时，master_id代表车主秀ID，type为2时，master_id代表达人说ID
        public static final String PAGE_SIZE = "page_size";  //分页大小，默认20
        public static final String PAGE = "page";  //分页页号，默认为1
        public static final String CONTENT = "content";
        public static final String COMMENT_ID = "comment_id"; //comment_id为空时，是赞秀，不为空赞评论
        public static final String ACTION_TYPE = "action_type";//操作类型：1、点赞 2、取消赞
    }

    /**
     * Url相关的字段
     */
    public static final class UrlKey {
        public static final String UXIN_PIC_SERVER_HEADER_ADDRESS = "http://imgup.xin.com/upload.php";
        public static final String UXIN_FILE_SERVER_HEADER_ADDRESS = "http://upload.xin.com/upload_file.php";
        public static final String UXIN_PIC_SERVER_HEADER = "http://imgc.xin.com";
    }

    /**
     * Intent传递的字段
     */
    public static final class IntentKey {
        public static final String PIC_MAXSIZE = "pic_maxsize";
        public static final String POSITION = "position";
        public static final String SIMPLE_IMAGES = "simple_images";
        public static final String FRAME_IMAGES = "frame_images";
        public static final String NAME = "name";
        public static final String PATH = "path";
        public static final String URL = "url";
        public static final String LOCATION = "location";
        public static final String CODE = "code";
        public static final String PICNAME = "picname";
        public static final String TIME = "time";
        public static final String KEYWORD = "keyword";
        public static final String UPLOAD = "upload";
        public static final String ROTATE = "rotate";
        public static final String NEXTACTIVITY = "nextactivity";
        public static final String POINT = "point";
        public static final String RECT = "rect";
        public static final String DATA = "data";
        public static final String SHOW = "show";
        public static final String USERINFO = "userinfo";
        public static final String ISRECYCLER = "isRecycler";
        /**
         * 车主秀瀑布流item id
         */
        public static final String OWNER_SHOW_ID = "owner_show_id";
        /**
         * 用户id
         */
        public static final String OWNER_ID = "owner_id";
        public static final String OWNER_COMMENT_ID = "owner_comment_id";
        public static final String TITLE = "title";
        public static final String FILTER = "filter";
        public static final String RETURN = "return";
        public static final String TYPE = "type";

        /**
         * 从我的页面点击关注 还是 粉丝 进入关注粉丝列表。0关注，1粉丝
         */
        public static final String ORIGINAL_USER_ATTENTION = "original_user_attention";
        /**
         * 他人主页id
         */
        public static final String SHOW_USER_ID = "show_user_id";
        public static final String MSGNUM = "msgnum"; //首页消息数量

        /**
         * 头像地址
         */
        public static final String AVTAR_URL = "avtar_url";
        /**
         * 昵称
         */
        public static final String NICKNAME = "nickname";

        /** 性别 */
        public static final String USER_GENDER = "user_gender";
        /** 我的车名称 */
        public static final String USER_CAR_NAME = "user_car_name";

        /** 搜素参数 */
        public static final String SEARCH_PARAMS = "search_params";

        public static final String BRANDID = "brandid";// 品牌id
        public static final String BRANDNAME = "brandname";// 品牌名称
        public static final String SERIESID = "seriesid";// 车系id
        public static final String SERIESNAME = "seriesname";// 车系名称
        public static final String MODELID = "modelid";// 车型id
        public static final String MODELNAME = "modelname";// 车型名称
    }

}
